package com.carlinfo.stu_ques.demo.pojo;

import java.io.Serializable;
import java.util.Date;

public class King implements Serializable
{
	private int id;
	private int dynastyId;
	private String name;
	private short age;
	private double hight;
	private String miaoHao;
	private String nianHao;
	private Date createTime;
	private Date UpdateTime;
	
	private Dynasty dynasty;
	public Dynasty getdynasty()
	{
		return dynasty;
	}
	public void setdynasty(Dynasty dynasty)
	{
		this.dynasty =  dynasty;
	}
	
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public int getDynastyId()
	{
		return dynastyId;
	}
	public void setDynastyId(int dynastyId)
	{
		this.dynastyId = dynastyId;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public short getAge()
	{
		return age;
	}
	public void setAge(short age)
	{
		this.age = age;
	}
	public double getHight()
	{
		return hight;
	}
	public void setHight(double hight)
	{
		this.hight = hight;
	}
	public String getMiaoHao()
	{
		return miaoHao;
	}
	public void setMiaoHao(String miaoHao)
	{
		this.miaoHao = miaoHao;
	}
	public String getNianHao()
	{
		return nianHao;
	}
	public void setNianHao(String nianHao)
	{
		this.nianHao = nianHao;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return UpdateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		UpdateTime = updateTime;
	}
	@Override
	public String toString()
	{
		String ruelt = getId() + "\t"+ getDynastyId() + 
		"\t"+ getName() +
		"\t"+ getAge() +"\t"+ getHight() +"\t"+ 
		getMiaoHao() + "\t"+ getNianHao() + 
		"\t"+ getCreateTime().toLocaleString() +"\t" 
		+ getUpdateTime().toLocaleString();
		return ruelt;
	}
	
}
